/**
 * 
 */
package com.gite.nouette.admin.implementation.model;

import java.util.ArrayList;
import java.util.List;

import com.gite.nouette.admin.contract.model.IAdmin;
import com.gite.nouette.admin.contract.model.IManager;

/**
 * @author Cyril Souti
 * @version 1.0
 * 
 */
public class AdminImpl extends AbstractModel implements IAdmin {
	private List<IManager> managers;

	public AdminImpl() {
		setManagers(new ArrayList<IManager>());
	}

	/**
	 * @return the managers
	 */
	public List<IManager> getManagers() {
		return this.managers;
	}

	/**
	 * @param managers
	 *            the managers to set
	 */
	public void setManagers(List<IManager> managers) {
		this.managers = managers;
	}

	@Override
	public boolean addManager(IManager manager) {
		return getManagers().add(manager);
	}
}
